mcN = "letter"; loop = 0; loopDelay = 0; waitCharEnd = 0; aLetters = new Array(); for (i = 0; i< numChar; i++){ aLetters[i+0] = i; var letter = this[mcN +i]; letter._visible = true; letter.init = letterInit; letter.doEffect = effect; letter.number = i; } function letterInit(){ this.speed = this._parent.speed; this.radius = this._parent.height/2; this.angle = 0; this.yCenter = this._y - this.radius; } function effect(){ this.angle += this.speed; this.angleSin = Math.sin((this.angle/180) * Math.PI); this._y = this.yCenter - this.angleSin * this.radius; } function shuffle(){ return Math.floor(Math.random() * 3) -1; } if (random == 1){ aLetters.sort(shuffle); } if (reverse == 1){ aLetters.reverse(); }